import { EntityModel } from '@midwayjs/orm';
import { Column } from 'typeorm';
import {LoeeEntity} from '../../../comentity'
/**
 * 描述
 */
@EntityModel('teacher')
export class teacherEntity extends LoeeEntity {

  @Column({ comment: '教师姓名' })
  name: string;

  @Column({ comment: '年龄' })
  age: number;

  @Column({ comment: '性别，1:男;0:女;2:未知',default:2 })
  gender: number;

  @Column({ comment: '专业' })
  professional: string;

  @Column({ comment: '毕业学校' })
  school: string;

  @Column({ comment: '工作目标' })
  work_goal: string;

  @Column({ comment: '使用账号',nullable:true,unique:true })
  user_id: number;

  @Column({ comment: '类型' })
  type: number;

  @Column({ comment: '是否在职' })
  is_work: boolean;

  @Column({ comment: '备注',length:1000,nullable: true})
  note: string;
}
